home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
prg_casm
/
snip9611.zip
/
BREAK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-24
|
532b
|
31 lines
/* +++Date last modified: 28-Sep-1996 */
/*
** Set or determine the status of the DOS "SET BREAK=" command
*/
#include <dos.h>
#include "snpdosys.h"
/*
** Returns status of DOS "SET BREAK" command
*/
int isBreakOn(void)
{
union REGS regs;
regs.x.ax = 0x3300;
intdos(®s, ®s);
return (int)regs.h.dl;
}
void setBreak(int OnOff) /* Off = 0, On = 1 */
{
union REGS regs;
regs.x.ax = 0x3301;
regs.h.dl = OnOff;
intdos(®s, ®s);
}